#1,计算n的阶乘
n=eval(input('请输入n的值：'))
a=1
for i in range(2,n+1):
    a*=i
print(n,'的阶乘为：',a)

#2.购买方案
sum=0
for i in range(34):
    for j in range(67):
        for s in range(126):
            if 3*i+1.5*j+0.8*s==100:
                print('母鸡',i,'只','公鸡',j,'只','小鸡',s,'只',)
                sum+=1
print('一共有',sum,'种方案')

#3.打印九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print(j,'*',i,'=',j*i,end='   ')
    print()

#4.打印图形
for i in range(1,7):
    print( ' '*(6-i),'* '*i)
for i in range(1,6):
    print(' '*i,'* '*(6-i))







